package risk.ui.console;

import java.io.IOException;
import java.util.Scanner;

import risk.game.entity.Game;
import risk.game.entity.player.Player;

public class ConsoleView {

	private Game newGame;
	private Scanner in = new Scanner(System.in);
	
	public ConsoleView() throws Exception{
		System.out.println("Wellcome To Risk Game");
		
	}
	
	public void startGame() throws Exception{
		int numOfPlayer;
		
		newGame = new Game();
		System.out.print("Please enter number of player : ");
		numOfPlayer = in.nextInt();
		for(int i=0; i<numOfPlayer ;i++){
			System.out.println("Enter Player " + (i+1) + " name : ");
			newGame.addActivePlayer(new Player(in.next(), null));
		}	
		in.close();
	}
}
